﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.Web;
using OrgChart.Entity;
using OrgChart.Logic.Interface;
using App.Service;

namespace OrgChart.Logic
{
    public class ADLogic: IUser
    {

        public bool IsLogin
        {
            get { return true; }
        }

        public UserEntity CurrentUser
        {
            get
            {
                UserEntity user = new UserEntity();
                user.AD_ACCOUNT = HttpContext.Current.User.Identity.Name;
                return user;
                ;
            }
        }

        public void SetCurrentUser(string userAccount)
        {
            
        }

        public string GetFullName(string name)
        {
            return HttpContext.Current.User.Identity.Name;
        }
    }
}
